package com.un.ebs.production.domain;

import com.un.ebs.product.enums.ProductPurchaseTypeEnum;

import java.util.Date;

import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import org.springframework.stereotype.Component;
import lombok.Data;
import com.un.ebs.core.metadata.DbField;

/**
 * (ProductionOrderRequirementPlanExt)表实体类
 *
 * @author liubo
 * @since 2020-07-20 23:06:51
 */
@Data
@Component
@TableName("v_production_order_requirement_plan_ext")
@SuppressWarnings("serial")
public class ProductionOrderRequirementPlanExt extends Model<ProductionOrderRequirementPlanExt> {


    @DbField(name = "sku_id", length = 40, precision = 0)
    private String skuId;

    @DbField(name = "sku_code", length = 100, precision = 0)
    private String skuCode;

    @DbField(name = "main_sku_id", length = 40, precision = 0)
    private String mainSkuId;

    @DbField(name = "main_sku_code", length = 100, precision = 0)
    private String mainSkuCode;

    @DbField(name = "name_as", length = 100, precision = 0)
    private String nameAs;

    @DbField(name = "purchase_type", length = -1, precision = 0)
    private ProductPurchaseTypeEnum purchaseType;

    @DbField(name = "is_allow_lack_start", length = -1, precision = 0)
    private Boolean isAllowLackStart;

    @DbField(name = "production_order_code", length = 100, precision = 0)
    private String productionOrderCode;

    @DbField(name = "user_qty", length = 38, precision = 4)
    private Double userQty;

    @DbField(name = "main_sku_name_as", length = 2100, precision = 0)
    private String mainSkuNameAs;

    @DbField(name = "main_sku_production_qty", length = 38, precision = 4)
    private Double mainSkuProductionQty;

    @DbField(name = "production_requirement_qty", length = 38, precision = 6)
    private Double productionRequirementQty;

    @DbField(name = "can_user_inventory", length = 18, precision = 4)
    private Double canUserInventory;

    @DbField(name = "plan_work_status", length = -1, precision = 0)
    private Boolean planWorkStatus;

    @DbField(name = "plan_work_date", length = -1, precision = 0)
    private Date planWorkDate;

    @DbField(name = "order_id", length = 40, precision = 0)
    private String orderId;

    @DbField(name = "tenant_id", length = 40, precision = 0)
    private String tenantId;

    @DbField(name = "schedule_qty", length = 38, precision = 4)
    private Double scheduleQty;


}